package com.example.bankend.util;

import java.math.BigInteger;
import java.util.concurrent.ThreadLocalRandom;

/**
 * @author luolinila
 * @date 2025/6/17 15:16
 */
public class Random {
    public static String randomCaptcha() {
        int captcha = ThreadLocalRandom.current().nextInt(100000, 999999);
        return String.valueOf(captcha);
    }
    public static Long randomLong() {
        return ThreadLocalRandom.current().nextLong(10000000, 99999999);
    }
    public static String randomCardNumber() {
        return String.valueOf(ThreadLocalRandom.current().nextLong(1000000000000000L, 9999999999999999L));
    }
}
